using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FernUniHagen.CompilerExtension.DataStructures;
using FernUniHagen.CompilerExtension.Interfaces;
using Roslyn.Compilers.Common;
using Roslyn.Compilers.CSharp;

namespace FernUniHagen.CompilerExtension.Adaptor
{
    public class DefaultBlockNode : BlockNodeFactory, IMultiplicityConvertible<CommonSyntaxNode>
    {
        CommonSyntaxNode _node;

        private DefaultBlockNode()
        { }

        public DefaultBlockNode(CommonSyntaxNode node)
        {
            _node = node;
        }

        public override StatementReplacement<CommonSyntaxNode> ConvertToMutiplicity(string newVariableName)
        {
            return new StatementReplacement<CommonSyntaxNode>(_node, _node) ;
        }

       
    }
}
